<html>  
<head>
	<Meta http-equiv="Content-Type" Content="text/html; Charset=UTF-8">
	<Meta http-equiv="Content-Language" Content="zh-CN">

	<title><?php echo $title; ?></title> 

	<!-- mobile viewport optimisation -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<!-- stylesheets -->
	<?php
		foreach($css_info as $item)
			echo "<link rel=\"stylesheet\" href=\"${item}\" type=\"text/css\" />";
		echo '<link rel = "Shortcut Icon" href="pages/img/favicon.ico" >';
	?>

</head>  
<body>
	<div id='welcome' ><?php echo "欢迎您， $user!"; ?>&nbsp;&nbsp;<a href="admin.php?r=index/logout">退出</a></div>
	
	<div id='menu' style="width:960px;margin:auto;"><ul>
		<?php 
			foreach($menu as $item){
				if($item['desc']==$current)
					echo "<li style=\"list-style: none;float: left;min-width:70px;padding:10px;\"><a href=\"${item['link']}\" class=\"active\">${item['desc']}</a></li>";
				else
					echo "<li style=\"list-style: none;float: left;min-width:70px;padding:10px;\"><a href=\"${item['link']}\" >${item['desc']}</a></li>";
			}
		?>
	</ul><div style="clear:both"></div>
    </div>
	
	<div id='main' style="width:960px;margin:auto;"><?php echo $main;?> </div>

	<?php
		foreach($js_info as $item)
			echo "<script type=\"text/javascript\" src=\"${item}\"></script>";
	?>
</body>
</html>
